package com.glela.company.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.glela.company.model.XzOmsLog;

public interface XzOmsLogMapper {
	int deleteByPrimaryKey(Long id);

	int insert(XzOmsLog record);

	int insertSelective(XzOmsLog record);

	XzOmsLog selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(XzOmsLog record);

	int updateByPrimaryKey(XzOmsLog record);

	int deleteByPrimaryOrderSn(String orderSn);

	/**
	 * <dl>
	 * <dt>删除推送错误日志</dt>
	 * </dl>
	 * @param orderSn 父单号
	 * @param orderInfoSn 子订单号
	 * @return int 影响行数
	 * @author zls
	 * @date 2017年9月18日 上午11:53:04
	 */
	int deleteByOrderSnAndOrderInfoSn(@Param("orderSn") String orderSn, @Param("orderInfoSn") String orderInfoSn);

	public List<String> selectAutoPushOrder();
	
	public XzOmsLog selectAutoPushOrderByOrderSn(@Param("orderSn") String orderSn);

}